NDepend.API Documentation
ParentAssembliesNamespacesAndTypes(IEnumerable<IMember>) Method
NDepend.CodeModel Namespace > ExtensionMethodsProjection Class > ParentAssembliesNamespacesAndTypes Method : ParentAssembliesNamespacesAndTypes(IEnumerable<IMember>) Method
This sequence of IMember objects.
Returns a sequence of ICodeElementParent objects, containing all IMember.ParentAssembly, IMember.ParentNamespace and IMember.ParentType objects of all IMember objects contained in this sequence members.
Syntax
[Extension()]
public static IEnumerable<ICodeElementParent> ParentAssembliesNamespacesAndTypes( 
   IEnumerable<IMember> members
)

Parameters

members
This sequence of IMember objects.
Remarks
For a IType object in the sequence members, a parent type is added to the result sequence only if it is a nested type.
If such a type is nested in a nested type all its parents types are added to the result sequence.
If the parent type of a nested type is already in the sequence members, it is not added a second time because all sequences returned by projection methods are doublon-free.
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

ExtensionMethodsProjection Class
ExtensionMethodsProjection Members
Overload List